# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=rubiks
pkgver=20070912
pkgrel=4
pkgdesc="Several programs for working with Rubik's cubes"
arch=(loong64 x86_64)
url="https://www.sagemath.org"
license=(GPL)
depends=(gcc-libs)
#source=("http://www.sagemath.org/packages/upstream/$pkgname/$pkgname-$pkgver.tar.bz2" 
source=("https://mirrors.mit.edu/sage/spkg/upstream/$pkgname/$pkgname-$pkgver.tar.bz2"
  'dietz-mcube-Makefile' 'dietz-cu2-Makefile' 'dietz-solver-Makefile' 'reid-Makefile')
sha256sums=('d8f9f1bcf7a1c7e152eb0df429d391b1a723c614eb7fad6fbbdacf20c19ab57d'
            '63346eb09bf104802a102ce82aea07469c9085ecdc74ab403945aac7f0a0a744'
            '5ed64254799958aeaa2d6ae17a6d94e25a92260a7ae19cb1ca741c8a3514cc3a'
            'cf5f40e40f1dd77cba2ffa7cc83b74e338797c32cfb8c751560faa60cd2e63b1'
            '0c97aac3b02f2dbd366af58de4e931b7764280fc733505742a11ae9ec4f424c6')

prepare() {
  cd $pkgname-$pkgver
  cp ../dietz-mcube-Makefile dietz/mcube/Makefile
  cp ../dietz-solver-Makefile dietz/solver/Makefile
  cp ../dietz-cu2-Makefile dietz/cu2/Makefile
  cp ../reid-Makefile reid/Makefile

}

package() {
  cd $pkgname-$pkgver
  INSTALL=/usr/bin/install make PREFIX="$pkgdir"/usr install
}
